Hệ thống bổ nhiệm bác sĩ trong PHP bằng mã nguồn

1 <?php include('header.php'); ?>
2
3 <?php include(
'Admin/function.php'); ?>
4
5
6
7     <!--
this is for donor registraton -->
8     <div
class="contact" style="background-color: #7faf81;">
9         <h1
class="text-center">Contact us</h1>
10         <form enctype=
"multipart/form-data" method="post" class="text-center">
11             
12              Name:<input type=
"text" name="t1" required="required" pattern="[a-zA-Z _]{2,15}" title="please enter only character between 2 to 15 for donor name" /> <br>
13
14              E-Mail</td><td><input type=
"email" name="t2" required="required" /> <br>
15
16             Mobile No</td><td><input type=
"number" name="t3" pattern="[0-9]{10,12}" title="please enter only numbers between 10 to 12 for mobile no." /> <br>
17
18             Subject</td><td><textarea name=
"t4"></textarea> <br>
19
20             <input type=
"submit" value="Send Us" name="sbmt">
21         </form>
22     </div>
23     
24     
25
26     
27  <?php include(
'footer.php'); ?>
28
29
30     
31     </div><!-- containerFluid Ends -->
32
33
34
35
36     <script src=
"js/bootstrap.min.js"></script>
37
38
39  
40
41
42     <?php include(
'regivalidate.php'); ?>
43
44     <?php
45         
if(isset($_POST["sbmt"]))
46         {
47             
48             $cn=makeconnection();
49
50                     $s=
"insert into contacts(name,email,mobile,subj) values('" . $_POST["t1"] ."','" . $_POST["t2"] . "','" . $_POST["t3"] . "','" . $_POST["t4"] ."')";
51                     
52                     
53             $q=mysqli_query($cn,$s);
54             mysqli_close($cn);
55             
if($q>0)
56             {
57             echo
"<script>alert('Record Save');</script>";
58             }
59             
else
60             {echo
"<script>alert('Saving Record Failed');</script>";
61             }
62                 
63                 }
64             
65
66         ?>
67 </body>
68 </html>


Gõ tìm kiếm nhanh...